<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="xmlCode.title" />
    </title>
    <meta name="heading" content="<fmt:message key='xmlCode.heading'/>" />
</head>
<form:form id="VideoSearch" name="VideoSearch" method="post" action="videoList.html">
    <table class="table">
        <tr>
            <td><fmt:message key="xmlCode.outputId"/></td>
            <td><input type="text" id="videoDetailViewSearchCondition.outputId" name="outputId" value="${videoDetailViewSearchCondition.outputId}"/></td>
        </tr>
        <tr>
            <td><fmt:message key="xmlCode.sourceId"/></td>
            <td><input type="text" id="videoDetailViewSearchCondition.sourceId" name="sourceId" value="${videoDetailViewSearchCondition.sourceId}"/></td>
        </tr>
        <tr>
            <td><fmt:message key="xmlCode.bitsType"/></td>
            <td>
                <select id="videoDetailViewSearchCondition.codeRate" name="codeRate">
                    <option value=""  <c:if test="${videoDetailViewSearchCondition.codeRate == ''}">selected="selected"</c:if>><fmt:message key="xmlCode.bitsType.null"/></option>
                    <option value="720" <c:if test="${videoDetailViewSearchCondition.codeRate == '720'}">selected="selected"</c:if>><fmt:message key="xmlCode.bitsType.720"/></option>
                    <option value="1080" <c:if test="${videoDetailViewSearchCondition.codeRate == '1080'}">selected="selected"</c:if>><fmt:message key="xmlCode.bitsType.1080"/></option>
                </select>
            </td>
        </tr>
        <tr>
            <td><fmt:message key="xmlCode.videoName"/></td>
            <td><input type="text" id="videoDetailViewSearchCondition.videoName" name="videoName" value="${videoDetailViewSearchCondition.videoName}"/></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center;">
                <input type="submit" value="<fmt:message key="button.search"/>"/>
                <input type="button" value="<fmt:message key="button.reset"/>"/>
            </td>
        </tr>
    </table>
</form:form>

<display:table name="videoList" cellspacing="0" cellpadding="0" requestURI="" id="videoInfo" pagesize="20" class="table" export="false">
    <display:column property="outputId" escapeXml="true" sortable="true" titleKey="xmlCode.outputId" />
    <display:column property="sourceId" escapeXml="true" sortable="true" titleKey="xmlCode.sourceId" />
    <display:column property="videoNameDetail" escapeXml="true" sortable="true" titleKey="xmlCode.videoNameDetail" />
    <display:column escapeXml="true" sortable="true" titleKey="xmlCode.bitsType">
        <c:if test="${videoInfo.bitsType == 1 || videoInfo.bitsType == 6}"><fmt:message key="xmlCode.bitsType.1080" /></c:if>
        <c:if test="${videoInfo.bitsType == 2 || videoInfo.bitsType == 7}"><fmt:message key="xmlCode.bitsType.720" /></c:if>
    </display:column>
    <display:column property="videoBits" escapeXml="true" sortable="true" titleKey="xmlCode.videoBits" />
    <display:column property="videoName" escapeXml="true" sortable="true" titleKey="xmlCode.videoName" />

    <display:setProperty name="paging.banner.item_name" value="" />
    <display:setProperty name="paging.banner.items_name" value="" />
</display:table>